import { TableListParams, TableListItem } from './data.d';
const list = ([
  {
    key: 99,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 99',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 448,
    status: 3,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 71,
  },
  {
    key: 98,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 98',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 260,
    status: 1,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 39,
  },
  {
    key: 97,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 97',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 181,
    status: 2,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 33,
  },
  {
    key: 96,
    disabled: true,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 96',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 990,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 16,
  },
  {
    key: 95,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 95',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 421,
    status: 3,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 56,
  },
  {
    key: 94,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 94',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 572,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 49,
  },
  {
    key: 93,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 93',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 229,
    status: 1,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 6,
  },
  {
    key: 92,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 92',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 994,
    status: 1,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 4,
  },
  {
    key: 91,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 91',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 815,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 46,
  },
  {
    key: 90,
    disabled: true,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 90',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 611,
    status: 3,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 89,
  },
  {
    key: 89,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 89',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 499,
    status: 2,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 40,
  },
  {
    key: 88,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 88',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 646,
    status: 1,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 45,
  },
  {
    key: 87,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 87',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 976,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 92,
  },
  {
    key: 86,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 86',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 172,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 48,
  },
  {
    key: 85,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 85',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 504,
    status: 1,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 49,
  },
  {
    key: 84,
    disabled: true,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 84',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 715,
    status: 1,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 26,
  },
  {
    key: 83,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 83',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 648,
    status: 3,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 18,
  },
  {
    key: 82,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 82',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 209,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 80,
  },
  {
    key: 81,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
    name: 'TradeCode 81',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 151,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 10,
  },
  {
    key: 80,
    disabled: false,
    href: 'https://ant.design',
    avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eeHMaZBwmTvLdIwMfBpg.png',
    name: 'TradeCode 80',
    owner: '曲丽丽',
    desc: '这是一段描述',
    callNo: 871,
    status: 0,
    updatedAt: '2020-04-30T03:12:29.044Z',
    createdAt: '2020-04-30T03:12:29.044Z',
    progress: 73,
  },
] as unknown) as TableListItem[];

const msg = {
  data: list,
  total: 100,
  success: true,
  pageSize: '20',
  current: 1,
};
export async function queryRule(params?: TableListParams) {
  return msg;
}

export async function removeRule(params: { key: number[] }) {
  return {
    success: true,
  };
}

export async function addRule(params: TableListItem) {
  return msg;
}

export async function updateRule(params: TableListParams) {
  return msg;
}
